<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="pagerForm" name="searchForm" method="get">
        <input type="hidden" name="pageNum" value="${pageNum}" />
        <div class="searchBar">
            <table class="searchContent">
                <tbody>
                    <tr>
                        <td>
                            车友会名称：<input type="text" name="clubName" value="${clubName}" class="textInput">
                        </td>
                        <td>
                            用户名：<input type="text" name="username" value="${username}" class="textInput">
                        </td>
                        <td>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="subBar">
                <ul>
                    <!--<li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="exportFile();">导出</button></div></div></li>-->
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" style="width: 100%" layoutH="110">
        <thead>
            <tr>
                <th >车友会ID</th>
                <th >车友会名称</th>
                <th >个性域名</th>
                <th >用户ID</th>
                <th >用户名</th>
                <th >油值</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach var="e" items="${list}">
                <tr>
                    <td>${e.club.clubId}</td>
                    <td>${fn:escapeXml(e.club.name)}</td>
                    <td>${fn:escapeXml(e.club.clubUrl)}</td>
                    <td>${e.user.uid}</td>
                    <td>${fn:escapeXml(e.user.username)}</td>
                    <td>${e.petrol}</td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共 ${total} 条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${total}" numPerPage="${pageSize}" pageNumShown="10" currentPage="${pageNum}"></div>
</div>
<script>
    var clubName="${param.clubName}";
    var username="${param.username}";
    function exportFile(){
        location.href="${ROOT}/admin/petrol/userPetrolBatchExport.do?clubName="+clubName+"&username="+username;
    }
</script>